<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<h2><?php print $header?></h2>
<p><?php echo $this->lang->line( 'checkin24_intro' ); ?></p>
<div class="buttons">                
	<a href="<?php print site_url( 'checkin24/user/checkin24/form_objects/' . $checkin24_id )?>">
    <?php print $this->bep_assets->icon( 'add' );?>
    <?php print $this->lang->line( 'create_checkin24_object' )?>
    </a>
</div>
<br />
<br />
<?php print form_open('checkin24/user/checkin24/delete_object/' . $checkin24_id)?>
<table class="data_grid" cellspacing="0">
    <thead>
        <tr>
            <th width=5%><?php print $this->lang->line( 'checkin24_object_id' )?></th>
            <th width=5% class="middle"><?php print $this->lang->line( 'checkin24_edit_object' )?></th>
            <th width=10%><?php print form_checkbox( 'all', 'select', FALSE)?><?php print $this->lang->line( 'checkin24_delete_object' )?></th>        
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan=7>&nbsp;</td>
            <td><?php print form_submit( 'delete', $this->lang->line( 'checkin24_delete_object' ), 'onClick="return confirm(\''.$this->lang->line('checkin24_delete_confirm_object').'\');"')?></td>
        </tr>
    </tfoot>
    <tbody>
        <?php foreach( $objects as $row ){ ?>
        <tr>
            <td><?php print $row[0]?></td>
            <td class="middle"><a href="<?php print site_url('checkin24/user/checkin24/form_object/'.$row[0])?>"><?php print $this->bep_assets->icon( 'pencil' ) ?></a></td>
            <td><?php print form_checkbox( 'select[]', $row[0], FALSE ); ?></td>
        </tr>
        <?php } //foreach ?>
    </tbody>
</table>
<?php print form_close()?>